package davion.study.summercloud.model;

public class User {
    private Integer id;

    private String username;

    private String uuid;

    private Long createTime;

    private Long modifyTime;

    private String imagePath;

    private Integer admin;

    private Integer level;

    public User(Integer id, String username, String uuid, Long createTime, Long modifyTime, String imagePath, Integer admin, Integer level) {
        this.id = id;
        this.username = username;
        this.uuid = uuid;
        this.createTime = createTime;
        this.modifyTime = modifyTime;
        this.imagePath = imagePath;
        this.admin = admin;
        this.level = level;
    }

    public User() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid == null ? null : uuid.trim();
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Long modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getImagePath() {
        return imagePath;
    }

    public void setImagePath(String imagePath) {
        this.imagePath = imagePath == null ? null : imagePath.trim();
    }

    public Integer getAdmin() {
        return admin;
    }

    public void setAdmin(Integer admin) {
        this.admin = admin;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", username=").append(username);
        sb.append(", uuid=").append(uuid);
        sb.append(", createTime=").append(createTime);
        sb.append(", modifyTime=").append(modifyTime);
        sb.append(", imagePath=").append(imagePath);
        sb.append(", admin=").append(admin);
        sb.append(", level=").append(level);
        sb.append("]");
        return sb.toString();
    }
}